package com.leyou.item.api;

import com.leyou.item.pojo.Brand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: Rose
 * @Date: 2021/4/3 10:44
 * @description ${description}
 * @version: 1.0.0
 */
public interface BrandApi {

    /***
     *
     *  根据id 查询品牌
     *
     * @param id
     * @return
     */
    @GetMapping("/brand/{id}")
    Brand queryBrandById(@PathVariable("id") Long id);

    @GetMapping("/brand/brands")
    List<Brand> queryBrandByIds(@RequestParam("ids") List<Long> ids);
}
